import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

/*公共底部*/
import Footer from './components/commons/footer'
import Success from './components/commons/success'

import Register from './components/register'
import Home from './components/home'
import Company from './components/company'
import Myself from './components/myself'

/*员工管理页面功能*/
import Apply from './components/homes/apply'
import ApplyList from './components/homes/applylist'
import ReviewList from './components/homes/reviewlist'

/*审核*/
import Review from './components/homes/review'

const routes = [
	{
		path:'/register',
		component:Register
	},
	{
		path:'/success',
		component:Success
	},
	{
		path:'/',
		component:Footer,
		children:[
			{
				path:'/',
				component:Home
			},{
				path:'/company',
				component:Company
			},
			{
				path:'/myself',
				component:Myself
			}
		]
	},
	{
		path:'/apply',
		component:Apply
	},
	{
		path:'/applylist',
		component:ApplyList
	},
	{
		path:'/reviewlist',
		component:ReviewList
	},
	{
		path:'/review',
		component:Review
	}
]

export default new Router({
	mode:'history',
	routes: routes
})
